package Banco;

import dataBase.conexao;
import java.sql.Connection;
import java.sql.SQLException;

public class Deletes {
    public void delete_user(String busca) throws SQLException{
        Connection c = null;
        conexao connect = new conexao();
        c = connect.getConnection();
        java.sql.Statement stm = c.createStatement();        
        Integer situacao = 1;
        String sql = "UPDATE helpdeskweb.user SET ";
               sql += " exclusao = ";
               sql += "'" +(situacao)+"'";
               sql += " WHERE id = ";
               sql += "'" +(busca)+"'";
               sql += "";
        stm.executeUpdate(sql);              
        c.close();        
    }
}
